package com.imm.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 订单表
 * @author HJy
 */
@Data
@TableName("orders")
public class Order {

    @TableId(value = "id")
    private Long id;
    @TableField("number")
    private String number;
    @TableField("status")
    private Integer status;
    @TableField("user_id")
    private Long userId;
    @TableField("address_book_id")
    private Long addressBookId;
    @TableField("order_time")
    private LocalDateTime orderTime;
    @TableField("checkout_time")
    private LocalDateTime checkoutTime;
    @TableField("pay_method")
    private Integer payMethod;
    @TableField("amount")
    private Double amount;
    @TableField("remark")
    private String remark;
    @TableField("phone")
    private String phone;
    @TableField("address")
    private String address;
    @TableField("user_name")
    private String userName;
    @TableField("consignee")
    private String consignee;

}
